package templateTest;

public class TestTemplatePattern {
    public static void main(String[] args) {
        System.out.println("处理销售数据：");
        DataProcessor salesProcessor = new SalesDataProcessor();
        salesProcessor.processData();

        System.out.println("\n处理库存数据：");
        DataProcessor inventoryProcessor = new InventoryDataProcessor();
        inventoryProcessor.processData();
    }
}
